﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Rhino.Commons.ForTesting;
using DomainModel.Entities;

namespace Tests
{
    public abstract class DatabaseFixture:DatabaseTestFixtureBase
    {
        [SetUp]
        public virtual void SetUp()
        {
            IntializeNHibernateAndIoC(PersistenceFramework.NHibernate, "../../windsor.boo", DatabaseEngine.MsSql2005Express, "SportsStore",
                MappingInfo.From(typeof(Product).Assembly));

            CurrentContext.CreateUnitOfWork();
        }

        [TearDown]
        public void TearDown()
        {
            CurrentContext.DisposeUnitOfWork();
        }
    }
}
